Getting Started with Kubernetes by Jonathan Baier
Author: Jonathan Baier [Baier, Jonathan] , Date: April 4, 2019
, Views: 1331
Listing 3-13: http-pd-controller.yaml
Let's also create an external service, so we can see it from outside the cluster:
apiVersion: v1 kind: Service metadata: name: http-pd labels: name: http-pd spec: type: LoadBalancer ports: - name: http protocol: TCP port: 80 selector: name: http-pd
Listing 3-14: http-pd-service.yaml
Go ahead and create these two resources now. Wait a few moments for the external IP to get assigned. After this, a describe command will give us the IP we can use in a browser:
$ kubectl describe service/http-pd
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.